import React, { Component } from 'react'
import {
  Route,
} from 'react-router-dom'
import Home from './home'
import Shop from './shop'
import Learn from './learn'
import My from './my'
import Footer from '../components/footer'
import '../App.css'

export default class App extends Component {
  render() {
    return (
      <div className="app">
        <div className="app-main">
          <Route path='/app/home' component={ Home } />
          <Route path='/app/shop' component={ Shop } />
          <Route path='/app/learn' component={ Learn } />
          <Route path='/app/my' component={ My } />
          {/* <Redirect from='/app' to='/app'/> */}
        </div>
        <Footer />
      </div>
    )
  }
}
